<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script type="module">
	import Promise from "./index.js";
    // catch:Promise原型下的一个函数.
    const p = new Promise(function(resolve,reject){
		reject(200);
    })
    p.then(undefined,function(reason){
		console.log(reason);
    })
    p.catch(function(reason){
		console.log(reason);
    })



</script>
</html>